package com.hdd.biz.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hdd.biz.painting.entity.PaintingWorks;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 作品表 Mapper 接口
 * </p>
 *
 * @author fang
 * @since 2021-02-25
 */
@Mapper
public interface APPPaintingWorksMapper extends BaseMapper<PaintingWorks> {


    int give(Map<String,Object> map);

    int follow(Map<String,Object> map);

    List<PaintingWorks> recommend(Map<String,Object> map);


    List<PaintingWorks>recommendRand(Map<String,Object> map);

    List<PaintingWorks> followList(Map<String,Object> map);

    List<PaintingWorks> worksDetailsList(Map<String,Object> map);


    PaintingWorks worksDetails(String id);

    List<PaintingWorks> topicWorks(String ids);

    int addFavourCount(String id);

    int reduceFavourCount(String id);

    int addvisit(String id);

    int totalVisit(Integer topicsId);

    int share(String id);

    int totalWorks(Integer topicsId);

    List<PaintingWorks> findWorksByUserId(String userId);

    List<PaintingWorks> myLikeList(Map<String,Object> map);


}
